home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 051-075 / 074 / tdebug / poster next >
Text File  |  1995-03-13  |  2KB  |  39 lines

  1. Article 4281 of comp.sys.amiga:
  2. Path: mcdsun!noao!hao!gatech!seismo!lll-lcc!styx!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon
  3. From: dillon@CORY.BERKELEY.EDU (Matt Dillon)
  4. Newsgroups: comp.sys.amiga
  5. Subject: DEVICE REQUEST INTERCEPT PROGRAM (Shar 1 of 1)
  6. Message-ID: <8705040039.AA12386@cory.Berkeley.EDU>
  7. Date: 4 May 87 00:39:34 GMT
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Lines: 509
  10.  
  11.  
  12.     This is version 1.00.  It will give you most of the IO request 
  13. information for any device(s) you choose.  It makes an assumption:
  14.  
  15.     -(1) The device that it is monitoring doesn't go away while it's
  16.     monitoring it.
  17.  
  18.     The program understands The trackdisk.device and will breakup the
  19. Offset field into cylinder , track,  and block number (sorry, currently
  20. only prints the numbers right for the Amiga's Floppies).
  21.  
  22.     TDEBUG works by intercepting the EXEC  SendIO() and DoIO() vectors.
  23. The new vector checks the sent request against the list of devices you want
  24. displayed and places the IOStdReq part of the request in a FIFO (Allocating
  25. a copy of the IOStdReq).  It then signals the main program.
  26.  
  27.     The Main program is constantly waiting for the latter signal, or 
  28. a BREAK (CTRL-C or CTRL-D).  When it gets the signal, it checks the FIFO
  29. and pulls off any pending buffers, displaying their contents and 
  30. deallocating the memory.
  31.  
  32.     This is what I used to get those DOS statistics for you.  It makes
  33. an excellent debugging tool for devices since you can intercept any device.
  34. Please mail all suggestions and comments to me.. remember, this is only
  35. V1.00
  36.  
  37.                 -Matt
  38.  
  39.